const base_url = "http://www.pudge.wang:4000";

const http = {
  get(url: string, params?: object) {
    if (params) {
      //
    }
    return fetch(base_url + url)
      .then((response) => response.json())
      .then((res) => {
        if (res.status === "0") {
          return res;
        }
      });
  },
};

export default http;
